<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page import="org.apache.commons.beanutils.locale.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet"  href="<%=request.getContextPath()%>/css/display.css" type="text/css" media="screen" />
<script src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script src="<%=request.getContextPath()%>/js/autocomplete.js"></script>
<script src="<%=request.getContextPath()%>/js/form.js"></script> 
<script type="text/javascript" src='<%=request.getContextPath()%>/js/input01.js'></script>

<title>Gestione Auser - Circolo</title>

</head>
<body> 
	 
	 <form method="post" action="save.jsp" name="formEdit" id=""formEdit"">
		 <c:if test="${empty param.id}" >
		 	<h1>Aggiunta di un Circolo</h1>   
		 	<input type="hidden" name="EditMode" value="ADD" />
		 </c:if>
		 
		 <c:if test="${!empty param.id}" >
		 	<h1>Dati Circolo</h1> 
		 	<input type="hidden" name="EditMode" value="EDIT" />
		 </c:if>
		 
		 
		<fieldset>
			<legend>Dati principali</legend>  
	 		
	 		<label for='codice'>Codice circolo</label><input type="text" name="codice" id="codice" size="15" value="${editCircolo.codice}" /> 
	 		<label class='validError'>${eCodice}</label><br/>
	 			 
	 		<label for='descrizione'>Denominazione</label><input type="text" name="descrizione" id="descrizione"  size="45" value="${editCircolo.descrizione}" /><br/>
	 		
	 			 		
	 		<label for='indirizzo'>Indirizzo</label><input type="text" name="indirizzo" id="indirizzo"  size="45" value="${editCircolo.indirizzo}" /><br/>
	 		 
			<input style='float:right' class='button' type='button' value='Esci senza salvare' id='btnClose' onclick='document.location="<%=request.getContextPath()%>/app/start/index.jsp"'> 
	 		<input style='float:right' class='button' type='submit' value='Salva' id='btnSave' />		
		</fieldset>	
	 
</body>
</html>